From c9aa0ceb0018153513b1e529134c8d8c4bc5cd71 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 30 Jul 2024 14:54:21 +0100 Subject: [PATCH] Fix toast changes in react-sdk Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/vector/platform/ElectronPlatform.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index 1e41db9e7d..23b8a0f9c8 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -170,8 +170,8 @@ export default class ElectronPlatform extends VectorBasePlatform { title: _t("download_completed"), props: { description: name, - acceptLabel: _t("action|open"), - onAccept, + primaryLabel: _t("action|open"), + onPrimaryClick: onAccept, dismissLabel: _t("action|dismiss"), onDismiss, numSeconds: 10,