From ce329084bf8565c475ea37e04006aaa08766c255 Mon Sep 17 00:00:00 2001 From: Kire Mitrov Date: Mon, 15 Jan 2024 16:35:28 +0100 Subject: [PATCH] fix: missing getState on useConfigStore under updateCardDetails (#433) --- src/stores/AccountController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/AccountController.ts b/src/stores/AccountController.ts index fdc503b89..7ac5e6a1a 100644 --- a/src/stores/AccountController.ts +++ b/src/stores/AccountController.ts @@ -412,7 +412,7 @@ export default class AccountController { expYear: number; currency: string; }) => { - const { isSandbox } = useConfigStore(); + const { isSandbox } = useConfigStore.getState(); const { getAccountInfo } = useAccountStore.getState(); const { customerId } = getAccountInfo();