Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions pages/send/Send.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,11 @@ export function Send() {
React.useEffect(() => {
if (url) {
(async () => {
const result = await loadPayment(url, amount);
await loadPayment(url, amount);
// Delay the camera to show the error message
if (!result) {
setTimeout(() => {
setStartScanning(true);
}, 2000);
}
setTimeout(() => {
setStartScanning(true);
}, 2000);
})();
} else {
setStartScanning(true);
Expand Down
Loading