Skip to content

Commit 45fe717

Browse files
committed
Make Send globally available 🥳
1 parent 1a88ff1 commit 45fe717

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

‎src/components/app.tsx‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,10 @@ class App extends React.Component<{
9797

9898
@computed
9999
get canVisitSend() {
100-
return this.props.accountStore.featureFlags.includes('send') && (
101-
// Hide Send option if the server is too old for proper support.
102-
// We show by default to avoid flicker in the most common case
103-
serverVersion.state !== 'fulfilled' ||
104-
versionSatisfies(serverVersion.value, SERVER_SEND_API_SUPPORTED)
105-
);
100+
// Hide Send option if the server is too old for proper support.
101+
// We show by default to avoid flicker in the most common case
102+
return serverVersion.state !== 'fulfilled' ||
103+
versionSatisfies(serverVersion.value, SERVER_SEND_API_SUPPORTED);
106104
}
107105

108106
@computed

‎src/components/view/view-page.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ class ViewPage extends React.Component<ViewPageProps> {
266266
}
267267

268268
isSendAvailable() {
269-
return this.props.accountStore.featureFlags.includes('send') &&
270-
versionSatisfies(serverVersion.value as string, SERVER_SEND_API_SUPPORTED);
269+
return versionSatisfies(serverVersion.value as string, SERVER_SEND_API_SUPPORTED);
271270
}
272271

273272
render(): JSX.Element {

0 commit comments

Comments
 (0)