diff --git a/src/App.tsx b/src/App.tsx index 4b530739..eb7bb5df 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -107,7 +107,7 @@ export const App: FC<{}> = props => }); return; } - }, []); + }, [ getPreloadAssetUrls ]); useMainEvent(Nitro.WEBGL_UNAVAILABLE, handler); useMainEvent(Nitro.WEBGL_CONTEXT_LOST, handler); diff --git a/src/views/wired/WiredMessageHandler.tsx b/src/views/wired/WiredMessageHandler.tsx index cae3aed7..601e81a6 100644 --- a/src/views/wired/WiredMessageHandler.tsx +++ b/src/views/wired/WiredMessageHandler.tsx @@ -31,23 +31,27 @@ export const WiredMessageHandler: FC<{}> = props => const onWiredOpenEvent = useCallback((event: WiredOpenEvent) => { const parser = event.getParser(); + + console.log(parser); }, []); const onWiredRewardResultMessageEvent = useCallback((event: WiredRewardResultMessageEvent) => { const parser = event.getParser(); + + console.log(parser); }, []); const onWiredSaveSuccessEvent = useCallback((event: WiredSaveSuccessEvent) => { - const parser = event.getParser(); - setTrigger(null); }, [ setTrigger ]); const onWiredValidationErrorEvent = useCallback((event: WiredValidationErrorEvent) => { const parser = event.getParser(); + + console.log(parser); }, []); CreateMessageHook(WiredFurniActionEvent, onWiredFurniActionEvent); diff --git a/src/views/wired/views/conditions/date-range/WiredConditionDateRangeView.tsx b/src/views/wired/views/conditions/date-range/WiredConditionDateRangeView.tsx index a0d3c0dd..22ee43a1 100644 --- a/src/views/wired/views/conditions/date-range/WiredConditionDateRangeView.tsx +++ b/src/views/wired/views/conditions/date-range/WiredConditionDateRangeView.tsx @@ -12,7 +12,7 @@ export const WiredConditionDateRangeView: FC<{}> = props => const dateToString = useCallback((date: Date) => { - return `${date.getFullYear()}/${('0' + (date.getMonth() + 1)).slice(-2)}/${('0' + date.getDate()).slice(-2)} ` + `${('0' + date.getHours()).slice(-2)}:${('0' + date.getMinutes()).slice(-2)}`; + return `${date.getFullYear()}/${('0' + (date.getMonth() + 1)).slice(-2)}/${('0' + date.getDate()).slice(-2)}${('0' + date.getHours()).slice(-2)}:${('0' + date.getMinutes()).slice(-2)}`; }, []); useEffect(() => @@ -31,7 +31,7 @@ export const WiredConditionDateRangeView: FC<{}> = props => setStartDate(dateToString(startDate)); setEndDate(dateToString(endDate)); } - }, [ trigger ]); + }, [ trigger, dateToString ]); const save = useCallback(() => {