Fix redirect to TemperatureEditView from reminder
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import {tempReminderObservable, periodReminderObservable} from '../local-storage'
|
||||
import Notification from 'react-native-push-notification'
|
||||
import { LocalDate } from 'js-joda'
|
||||
import Moment from 'moment'
|
||||
import labels from '../i18n/en/settings'
|
||||
import { getBleedingDaysSortedByDate } from '../db'
|
||||
@@ -11,7 +10,7 @@ export default function setupNotifications(navigate) {
|
||||
Notification.configure({
|
||||
onNotification: (notification) => {
|
||||
if (notification.id === '1') {
|
||||
navigate('TemperatureEditView', { date: LocalDate.now().toString() })
|
||||
navigate('TemperatureEditView')
|
||||
} else {
|
||||
navigate('Home')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user