basexhq / front-end

Other
0 stars 2 forks source link

Annoying: handle edge when deploying organisation 2nd is cancelled #19

Open marsrobertson opened 11 months ago

marsrobertson commented 11 months ago

Simple solution: do not display in the UI.

This is the case when JSONIPFS is empty

    function addOrganisationToTheList(uint256 orgIndex, string memory organisationJSONIPFS) public payable {
        organisations[orgIndex].JSONIPFS = organisationJSONIPFS;
        klerosOrganisations.addItem{value: msg.value}(organisationJSONIPFS);

        emit OrganisationAddedToKleros(organisations[orgIndex].orgGuid, organisations[orgIndex].name, organisations[orgIndex].klerosAddress);
    }