Skip to content

Commit b12409f

Browse files
committed
[DDW-854] Added flow return type
1 parent c27dbf9 commit b12409f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

source/renderer/app/components/loading/syncing-connecting/SyncingConnectingStatus.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ export default class SyncingConnectingStatus extends Component<Props> {
103103
intl: intlShape.isRequired,
104104
};
105105

106-
_getConnectingMessage = () => {
106+
_getConnectingMessage = (): {
107+
connectingMessage: string,
108+
connectingDescription?: string,
109+
} => {
107110
const {
108111
cardanoNodeState,
109112
hasBeenConnected,
@@ -112,11 +115,11 @@ export default class SyncingConnectingStatus extends Component<Props> {
112115
isConnected,
113116
} = this.props;
114117
let connectingMessage;
115-
let connectingDescription;
116118
if (isConnected) {
117119
connectingMessage = messages.loadingWalletData;
118-
return { connectingMessage, connectingDescription };
120+
return { connectingMessage };
119121
}
122+
let connectingDescription;
120123
switch (cardanoNodeState) {
121124
case null:
122125
case CardanoNodeStates.STARTING:

0 commit comments

Comments
 (0)