diff --git a/components/CodeInput/index.tsx b/components/CodeInput/index.tsx index 4b791c94..7253a84c 100644 --- a/components/CodeInput/index.tsx +++ b/components/CodeInput/index.tsx @@ -82,9 +82,7 @@ export const CodeInput = forwardRef( signal: abortController.signal, }) .then((otp) => { - if (otp) { - setCode(otp.code.split("")) - } + if (otp) setCode(otp.code.split("")) }) .catch((error) => { if (error?.message === "Aborted") return @@ -113,7 +111,7 @@ export const CodeInput = forwardRef( Write your code - code delivered by{" "} + Code delivered by{" "} {`${deliveryMethod === "SMS" ? "sms" : "e-mail"}`} @@ -139,7 +137,7 @@ export const CodeInput = forwardRef( - Kode sendt via {`${deliveryMethod === "SMS" ? "sms" : "e-mail"}`} + Code delivered by {`${deliveryMethod === "SMS" ? "sms" : "e-mail"}`} ) diff --git a/stories/components/CodeInput.stories.tsx b/stories/components/CodeInput.stories.tsx index ed5e39d6..ecd20f89 100644 --- a/stories/components/CodeInput.stories.tsx +++ b/stories/components/CodeInput.stories.tsx @@ -1,5 +1,5 @@ import { type Meta, type StoryObj } from "@storybook/react" -import CodeInput from "~/components/CodeInput" +import { CodeInput } from "~/components/CodeInput" const meta = { title: "Toolbox/CodeInput",