From bfaddadbfb5fa1a8e2ebe616913f3dc6ca3fea21 Mon Sep 17 00:00:00 2001 From: kirillzyusko Date: Sun, 16 Jun 2024 14:52:33 +0300 Subject: [PATCH] fix: QRCode page crash --- src/pages/ShareCodePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ShareCodePage.tsx b/src/pages/ShareCodePage.tsx index 347dc9694f31..9dfb5ae07a47 100644 --- a/src/pages/ShareCodePage.tsx +++ b/src/pages/ShareCodePage.tsx @@ -68,7 +68,7 @@ function ShareCodePage({report}: ShareCodePageProps) { Navigation.goBack(isReport ? ROUTES.REPORT_WITH_ID_DETAILS.getRoute(report.reportID) : undefined)} + onBackButtonPress={() => Navigation.goBack(isReport ? ROUTES.REPORT_WITH_ID_DETAILS.getRoute(report?.reportID) : undefined)} shouldShowBackButton />