fix: update NFC URL generation to support iOS platform in ChoreModals component

This commit is contained in:
Mo Tarbin
2026-07-10 01:07:55 -04:00
parent d207f7e2b2
commit 09909514d5

View File

@@ -6,7 +6,7 @@ import TextModal from '../../Modals/Inputs/TextModal'
import WriteNFCModal from '../../Modals/Inputs/WriteNFCModal'
const getNFCUrl = choreId =>
Capacitor.getPlatform() === 'android'
Capacitor.getPlatform() === 'android' || Capacitor.getPlatform() === 'ios'
? `donetick://chores/${choreId}`
: `${window.location.origin}/chores/${choreId}`
@@ -77,7 +77,6 @@ const ChoreModals = ({
/>
)}
{activeModal === 'nudge' && modalChore && (
<NudgeModal
config={{