render spinner onion path dialog if no path

pull/1714/head
Audric Ackermann 4 years ago
parent 34681210e3
commit 27b4ac283f
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -26,6 +26,7 @@ import {
// tslint:disable-next-line: no-submodule-imports
import useNetworkState from 'react-use/lib/useNetworkState';
import { SessionSpinner } from './session/SessionSpinner';
export type StatusLightType = {
glowStartDelay: number;
@ -38,6 +39,10 @@ const OnionPathModalInner = () => {
// including the device and destination in calculation
const glowDuration = onionPath.length + 2;
if (!onionPath) {
return <SessionSpinner loading={true} />
}
const nodes = [
{
label: window.i18n('device'),

Loading…
Cancel
Save