fix(TileViewButton) fix on mobile

`setOverflowMenuVisible` doesn't exist on mobile.
This commit is contained in:
Saúl Ibarra Corretgé 2021-11-24 09:57:46 +01:00 committed by Saúl Ibarra Corretgé
parent d7b581e338
commit 994f6307b9
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class TileViewButton<P: Props> extends AbstractButton<P, *> {
logger.debug(`Tile view ${value ? 'enable' : 'disable'}`);
batch(() => {
dispatch(setTileView(value));
dispatch(setOverflowMenuVisible(false));
navigator.product !== 'ReactNative' && dispatch(setOverflowMenuVisible(false));
});
}