Skip to content

Commit

Permalink
Merge pull request #3640 from TrainLCD/fix/crash
Browse files Browse the repository at this point in the history
オートモードクラッシュ修正
  • Loading branch information
TinyKitten authored Aug 3, 2024
2 parents d5c1c64 + f249db6 commit efcebb0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/hooks/useAutoMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const useAutoMode = (enabled: boolean): void => {
])

if (center) {
locationStore.setState({
useLocationStore.setState({
timestamp: 0,
coords: {
...center,
Expand All @@ -101,7 +101,7 @@ const useAutoMode = (enabled: boolean): void => {
const index = autoModeOutboundIndexRef.current

if (index === stations.length - 1) {
locationStore.setState({
useLocationStore.setState({
timestamp: 0,
coords: {
accuracy: 0,
Expand Down Expand Up @@ -132,7 +132,7 @@ const useAutoMode = (enabled: boolean): void => {
])

if (center) {
locationStore.setState({
useLocationStore.setState({
timestamp: 0,
coords: {
...center,
Expand Down Expand Up @@ -196,7 +196,7 @@ const useAutoMode = (enabled: boolean): void => {
}

if (next) {
locationStore.setState({
useLocationStore.setState({
timestamp: 0,
coords: {
latitude: next.latitude,
Expand Down Expand Up @@ -224,7 +224,7 @@ const useAutoMode = (enabled: boolean): void => {
}

if (next) {
locationStore.setState({
useLocationStore.setState({
timestamp: 0,
coords: {
latitude: next.latitude,
Expand Down

0 comments on commit efcebb0

Please sign in to comment.