Skip to content

Commit a156823

Browse files
committed
fix: after refreshing exchange rates pointInTime wasn't updated
1 parent ec80ea4 commit a156823

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/main/java/com/radynamics/dallipay/exchange/ExchangeRate.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ public ZonedDateTime getPointInTime() {
6666
return pointInTime;
6767
}
6868

69+
public void setPointInTime(ZonedDateTime pointInTime) {
70+
this.pointInTime = pointInTime;
71+
}
72+
6973
@Override
7074
public String toString() {
7175
return String.format("pair=%s, rate=%s", pair, rate);

src/main/java/com/radynamics/dallipay/ui/ExchangeRatesForm.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ private void refreshRates() {
239239
private void apply() {
240240
for (var i = 0; i < rates.length; i++) {
241241
rates[i].setRate(getTxtValue(txts.get(i)));
242+
rates[i].setPointInTime(ZonedDateTime.now());
242243
}
243244
}
244245

0 commit comments

Comments
 (0)