Skip to content

Commit

Permalink
fix: slider buttons label have switched
Browse files Browse the repository at this point in the history
  • Loading branch information
SegaraRai committed Jun 30, 2024
1 parent 36c0419 commit c3f9587
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions components/NatureApplianceControlAC.vue
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ interface SwipeByData {
unit: NatureTemperatureUnit;
}
const getSwipeBy = (offset: SwipeByOffset): SwipeByData | null => {
const getSwipeByData = (offset: SwipeByOffset): SwipeByData | null => {
if (!supportsTemperature.value || sendingSettings.value) {
return null;
}
Expand Down Expand Up @@ -478,7 +478,7 @@ const currentTemperatureRatio = computed((): number => {
});
const swipeBy = (offset: SwipeByOffset): void => {
const data = getSwipeBy(offset);
const data = getSwipeByData(offset);
if (!data) {
return;
}
Expand All @@ -499,7 +499,7 @@ watch(swipingTemperature, (value, prevValue): void => {
// temperature slider buttons
const getSliderButtonData = (offset: SwipeByOffset) => {
const data = getSwipeBy(offset);
const data = getSwipeByData(offset);
if (!data) {
return {
label: offset > 0 ? "設定温度を上げる" : "設定温度を下げる",
Expand All @@ -508,7 +508,7 @@ const getSliderButtonData = (offset: SwipeByOffset) => {
}
return {
label: `設定温度を${data.absDiff}${humanizeTemperatureUnitForSR(data.unit)}${data.diffSign > "+" ? "上げる" : "下げる"}`,
label: `設定温度を${data.absDiff}${humanizeTemperatureUnitForSR(data.unit)}${data.diffSign === "+" ? "上げる" : "下げる"}`,
available: true,
};
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "luonto",
"version": "1.0.2",
"version": "1.0.3",
"private": true,
"type": "module",
"scripts": {
Expand Down

0 comments on commit c3f9587

Please sign in to comment.