fix: update NFC URL generation to support iOS platform in ChoreModals component
This commit is contained in:
@@ -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={{
|
||||
|
||||
Reference in New Issue
Block a user