|
@@ -200,11 +200,7 @@ class ProxiwashScreen extends React.Component<PropsType, StateType> {
|
200
|
200
|
*/
|
201
|
201
|
getModalContent(title: string, item: ProxiwashMachineType, isDryer: boolean) {
|
202
|
202
|
const {props, state} = this;
|
203
|
|
- let button: {text: string; icon: string; onPress: () => void} = {
|
204
|
|
- text: i18n.t('screens.proxiwash.modal.ok'),
|
205
|
|
- icon: '',
|
206
|
|
- onPress: () => undefined,
|
207
|
|
- };
|
|
203
|
+ let button: {text: string; icon: string; onPress: () => void} | undefined;
|
208
|
204
|
let message = this.modalStateStrings[item.state];
|
209
|
205
|
const onPress = () => this.onSetupNotificationsPress(item);
|
210
|
206
|
if (item.state === MachineStates.RUNNING) {
|
|
@@ -247,7 +243,7 @@ class ProxiwashScreen extends React.Component<PropsType, StateType> {
|
247
|
243
|
<Text>{message}</Text>
|
248
|
244
|
</Card.Content>
|
249
|
245
|
|
250
|
|
- {button.onPress ? (
|
|
246
|
+ {button ? (
|
251
|
247
|
<Card.Actions>
|
252
|
248
|
<Button
|
253
|
249
|
icon={button.icon}
|