From 549a1ea6d4644c40c8052e67bfe70c31e6604c3c Mon Sep 17 00:00:00 2001 From: yougotwill Date: Thu, 26 Sep 2024 11:56:10 +0200 Subject: [PATCH] fix: test if rosetta emulation needs more time to mount react to create a qr code --- ts/hooks/useIconToImageURL.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/hooks/useIconToImageURL.tsx b/ts/hooks/useIconToImageURL.tsx index b27a8c086..27cf7da14 100644 --- a/ts/hooks/useIconToImageURL.tsx +++ b/ts/hooks/useIconToImageURL.tsx @@ -58,12 +58,12 @@ export const convertIconToImageURL = async ( /> ); // wait for it to render - await sleepFor(100); + await sleepFor(500); const svg = root?.querySelector(`#icon-to-image-url svg`); svg?.setAttribute('xmlns', 'http://www.w3.org/2000/svg'); const svgString = svg?.outerHTML; - + window.log.debug(`WIP: [convertIconToImageUrl] svgString: ${svgString}`); reactRoot?.unmount(); root?.removeChild(divElement);