Skip to content

Commit

Permalink
Fix initial sort bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wyne committed May 2, 2024
1 parent 46f263a commit e3a6326
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ For android, use JDK 17.
```zsh
npx react-native-clean-project
npx expo prebuild
eas build --profile development-simulator --platform ios --local
eas build --profile development-simulator --platform android --local
eas build:run -p ios # select expo build from above
eas build:run -p android # select expo build from above
npx eas build --profile development-simulator --platform ios --local
npx eas build --profile development-simulator --platform android --local
npx eas build:run -p ios # select expo build from above
npx eas build:run -p android # select expo build from above
npx expo start --dev-client
```

Expand Down
4 changes: 1 addition & 3 deletions redux/GamesSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import logger from '../src/Logger';
import { playerAdd, selectPlayerById, updatePlayer } from './PlayersSlice';
import { setCurrentGameId } from './SettingsSlice';
import { RootState } from './store';
import { set } from 'lodash';

export interface GameState {
id: string;
Expand Down Expand Up @@ -213,11 +212,10 @@ export const asyncCreateGame = createAsyncThunk(
});

dispatch(gameSave({
...initialState,
id: newGameId,
title: `Game ${gameCount + 1}`,
dateCreated: Date.now(),
roundCurrent: 0,
roundTotal: 1,
playerIds: playerIds,
}));

Expand Down
2 changes: 1 addition & 1 deletion src/components/ColorPalettes/PaletteSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

import { ScrollView, StyleSheet, TouchableOpacity } from 'react-native';

import { asyncSetGamePalette, updateGame } from '../../../redux/GamesSlice';
import { asyncSetGamePalette } from '../../../redux/GamesSlice';
import { useAppDispatch, useAppSelector } from '../../../redux/hooks';
import { selectCurrentGame } from '../../../redux/selectors';
import { getPalette, getPalettes } from '../../ColorPalette';
Expand Down
1 change: 0 additions & 1 deletion src/components/ScoreLog/PlayerNameColumn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const PlayerHeaderCell: React.FunctionComponent = () => {
);
};


const PlayerNameColumn: React.FunctionComponent = () => {
const sortKey = useAppSelector(state => selectCurrentGame(state)?.sortSelectorKey);

Expand Down

0 comments on commit e3a6326

Please sign in to comment.