Skip to content

A local-first personal finance app

:bug: show all available transaction icons (#1508)

Matiss Janis Aboltins2ef0fc941510
diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.js b/packages/desktop-client/src/components/transactions/TransactionsTable.js
index 0967a1f602..9ad6be9bf3 100644
--- a/packages/desktop-client/src/components/transactions/TransactionsTable.js
+++ b/packages/desktop-client/src/components/transactions/TransactionsTable.js
@@ -629,39 +629,44 @@ function PayeeIcons({
let recurring = schedule && schedule._date && !!schedule._date.frequency;
- return schedule ? (
- <Button
- type="bare"
- style={buttonStyle}
- onClick={e => {
- e.stopPropagation();
- onNavigateToSchedule(scheduleId);
- }}
- >
- {recurring ? (
- <ArrowsSynchronize style={scheduleIconStyle} />
- ) : (
- <CalendarIcon style={scheduleIconStyle} />
+ return (
+ <>
+ {schedule && (
+ <Button
+ type="bare"
+ style={buttonStyle}
+ onClick={e => {
+ e.stopPropagation();
+ onNavigateToSchedule(scheduleId);
+ }}
+ >
+ {recurring ? (
+ <ArrowsSynchronize style={scheduleIconStyle} />
+ ) : (
+ <CalendarIcon style={scheduleIconStyle} />
+ )}
+ </Button>
)}
- </Button>
- ) : transferAccount ? (
- <Button
- type="bare"
- style={buttonStyle}
- onClick={e => {
- e.stopPropagation();
- if (!isTemporaryId(transaction.id)) {
- onNavigateToTransferAccount(transferAccount.id);
- }
- }}
- >
- {(transaction._inverse ? -1 : 1) * transaction.amount > 0 ? (
- <LeftArrow2 style={transferIconStyle} />
- ) : (
- <RightArrow2 style={transferIconStyle} />
+ {transferAccount && (
+ <Button
+ type="bare"
+ style={buttonStyle}
+ onClick={e => {
+ e.stopPropagation();
+ if (!isTemporaryId(transaction.id)) {
+ onNavigateToTransferAccount(transferAccount.id);
+ }
+ }}
+ >
+ {(transaction._inverse ? -1 : 1) * transaction.amount > 0 ? (
+ <LeftArrow2 style={transferIconStyle} />
+ ) : (
+ <RightArrow2 style={transferIconStyle} />
+ )}
+ </Button>
)}
- </Button>
- ) : null;
+ </>
+ );
}
const Transaction = memo(function Transaction(props) {
diff --git a/upcoming-release-notes/1508.md b/upcoming-release-notes/1508.md
new file mode 100644
index 0000000000..2c59151274
--- /dev/null
+++ b/upcoming-release-notes/1508.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MatissJanis]
+---
+
+Show all available transaction icons - transfer & schedule