Skip to content

Commit

Permalink
オートモードクラッシュ修正
Browse files Browse the repository at this point in the history
  • Loading branch information
TinyKitten committed Aug 3, 2024
1 parent d5c1c64 commit f249db6
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 f249db6

Please sign in to comment.