Update ServerDetailsBlock.tsx

This commit is contained in:
Charles Morgan 2020-11-01 02:55:29 -05:00
parent e80b125543
commit fc0f8ee48e
No known key found for this signature in database
GPG Key ID: D71946CD723249BD
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ const ServerDetailsBlock = () => {
const name = ServerContext.useStoreState(state => state.server.data!.name);
const limits = ServerContext.useStoreState(state => state.server.data!.limits);
const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
allocation => allocation.alias + ':' + allocation.port || allocation.ip + ':' + allocation.port
allocation => (allocation.alias || allocation.ip) + ':' + allocation.port
)).toString();
const disklimit = limits.disk ? megabytesToHuman(limits.disk) : 'Unlimited';