Use Error instead of literal for promise rejection

This commit is contained in:
Peter Santos
2024-06-25 00:55:24 -04:00
parent cf0d2076b5
commit c3ad26ea55
7 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -366,7 +366,7 @@ export function show(options: Options) {
resolve(selectedId);
} else {
reject('ActionSheet closed without resolving');
reject(new Error('ActionSheet closed without resolving'));
}
}
});