From 2cb4a95aa2efc82cd5c53347b842ee1d0575fba7 Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 8 Aug 2022 15:53:49 +0100 Subject: [PATCH] fix: rename zip codes --- src/components/Agency/AgencieEditAllgemeines.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Agency/AgencieEditAllgemeines.tsx b/src/components/Agency/AgencieEditAllgemeines.tsx index abfe1923..03968383 100644 --- a/src/components/Agency/AgencieEditAllgemeines.tsx +++ b/src/components/Agency/AgencieEditAllgemeines.tsx @@ -56,7 +56,7 @@ export default function AgencieEditAllgemeines() { const [readOnlyTopicIds, setReadOnlyTopicIds] = useState(true); const [readOnlyOnline, setReadOnlyOnline] = useState(true); const [readOnlyTeamAgency, setReadOnlyTeamAgency] = useState(true); - const [readOnlyZipCodeScope, setReadOnlyZipCodeScope] = + const [readOnlyPostCodeRanges, setReadOnlyPostCodeRanges] = useState(true); const [readOnlyPostCode, setReadOnlyPostCode] = useState(true); const [readOnlyCity, setReadOnlyCity] = useState(true); @@ -104,7 +104,7 @@ export default function AgencieEditAllgemeines() { }; const resetAddress = () => { - setReadOnlyZipCodeScope(true); + setReadOnlyPostCodeRanges(true); setReadOnlyPostCode(true); setReadOnlyCity(true); }; @@ -158,7 +158,7 @@ export default function AgencieEditAllgemeines() { }; const handleAddress = () => { - setReadOnlyZipCodeScope(false); + setReadOnlyPostCodeRanges(false); setReadOnlyPostCode(false); setReadOnlyCity(false); }; @@ -363,7 +363,7 @@ export default function AgencieEditAllgemeines() { { const switchValue = !postCodeRangesSwitchActive; setPostCodeRangesSwitchActive(switchValue); @@ -386,11 +386,11 @@ export default function AgencieEditAllgemeines() { )} - {!readOnlyZipCodeScope && !readOnlyPostCode && !readOnlyCity && ( + {!readOnlyPostCodeRanges && !readOnlyPostCode && !readOnlyCity && (