mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 14:44:15 +00:00
fix: showing errors when converting qr code
This commit is contained in:
parent
5eab64ef96
commit
38356cf2f9
2 changed files with 3 additions and 2 deletions
|
|
@ -101,7 +101,7 @@ export default function SubmitForm() {
|
|||
try {
|
||||
conversion = convertQrCode(qrBytes);
|
||||
} catch (error) {
|
||||
setError(error as string);
|
||||
setError(error instanceof Error ? error.message : String(error));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue