diff --git a/src/hooks/usePolygon.js b/src/hooks/usePolygon.js index fd8e925d..21c708ee 100644 --- a/src/hooks/usePolygon.js +++ b/src/hooks/usePolygon.js @@ -306,7 +306,7 @@ export const usePolygon = () => { let text = '' - const compassType = (375 - moduleCompass) / 15 + const compassType = (375 - getDegreeInOrientation(moduleCompass)) / 15 if ([1, 25].includes(compassType)) { direction === 'north' ? (text = '北') : direction === 'south' ? (text = '南') : direction === 'west' ? (text = '西') : (text = '東')