fix setup form

This commit is contained in:
2026-01-23 15:27:42 +07:00
parent 505b0caeeb
commit 27a8f3ed0b
9 changed files with 273 additions and 159 deletions

View File

@@ -28,14 +28,14 @@ export function isDuplicateDevice(
}
export function getMerchant(): string {
export function getMerchant(): MerchantForm | null {
try {
return JSON.parse(localStorage.getItem(MERCHANT_KEY) || "");
} catch {
return '';
return null;
}
}
export function saveMerchant(val: string) {
export function saveMerchant(val: MerchantForm) {
localStorage.setItem(MERCHANT_KEY, JSON.stringify(val));
}